package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.UserEcologyHatchUpperLimit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 朱梦晨
 * @Description:
 * @date 2024-08-08
 */
@Mapper
public interface UserEcologyHatchUpperLimitMapper extends BaseMapper<UserEcologyHatchUpperLimit> {


    /**
     * 减少铸造上限
     *
     * @param userId
     * @param collectionId
     * @param count
     * @return
     */
    boolean subCountByUserIdAndCollectionId(@Param("userId") Long userId, @Param("collectionId") Long collectionId, @Param("count") Integer count);



}
